#ifndef __INET_H
#define __INET_H

//#include "lwip/opt.h"
//#include "lwip/def.h"
#include "ip_addr.h"
//#include "lwip/ip6_addr.h"

#ifdef __cplusplus
extern "C" {
#endif

/* If your port already typedef's in_addr_t, define IN_ADDR_T_DEFINED
   to prevent this code from redefining it. */
#if !defined(in_addr_t) && !defined(IN_ADDR_T_DEFINED)
typedef uint32_t in_addr_t;
#endif

struct in_addr {
    in_addr_t s_addr;
};

struct in6_addr {
    union {
        uint32_t u32_addr[4];
        uint8_t  u8_addr[16];
    } un;
#define s6_addr  un.u8_addr
};

/* \brief 255.255.255.255 */
#define INADDR_NONE         IPADDR_NONE
/* \brief 127.0.0.1 */
#define INADDR_LOOPBACK     IPADDR_LOOPBACK
/* \brief 0.0.0.0 */
#define INADDR_ANY          IPADDR_ANY
/* \brief 255.255.255.255 */
#define INADDR_BROADCAST    IPADDR_BROADCAST

#ifdef __cplusplus
}
#endif

#endif /* __INET_H */

